#include<stdio.h>

#define MAXLINE 1000
#define LIMIT 80

int mgetline(char line[],int lim);
void copy(char to[],char from[]);

int main(void)
{
    int len;
    char line[MAXLINE];

    while((len = mgetline(line, MAXLINE)) > 0)
    {
        if (len > LIMIT)
        {
            printf("%s",line);
        }
    }
}


int mgetline(char s[],int lim)
{
    int i,c;

    for(i = 0; i < lim-1 && (c=getchar()) != EOF && c != '\n'; ++i)
        s[i] = c;

    if(c == '\n')
    {
        s[i] = c;
        ++i;
    }

    s[i] = '\0';
    return i;
}

void copy(char to[],char from[])
{
    int i;
    i=0;

    while((to[i]=from[i]) != '\0')
        ++i;
}